package com.ssss.builder;

public class Test {

//    public static void main(String[] args) {
//        // 装机员小美
//        Builder builder = new XiaoMingBuilder();
//        // 老板安排小明去装机
//        Director director = new Director(builder);
//        Computer computer = director.createComputer("Inter 酷睿i9", "三星", "16G");
//        System.out.println(computer.toString());
//    }

    public static void main(String[] args) {
        Builder builder = new XiaoMingBuilder();
        Director director = new Director();
        director.buildComputer(builder);
        Computer computer = builder.getComputer();
        System.out.println(computer.toString());
    }
}
